header{
    width: 100%;
    padding: 0 10px;
    position: fixed;
    background-color: #ffc107;
    z-index: 1;
    .head{
        height: 50px;
        line-height: 50px;
        nav .link {
            position: relative;
        }
        nav .link:hover {
            animation: scale .5s;
        }
        /* 缩放的动画 */
        @keyframes scale {
            0% {
                transform: scale(1)
            }
        
            50% {
                transform: scale(1.2)
            }
        
            100% {
                transform: scale(1)
            }
        }
        nav .link::after {
            content: '';
            /* 子元素绝对定位 */
            position: absolute;
            width: 0;
            height: 3px;
            background-color: #fff;
            bottom: 5px;
            left: 50%;
        }
        
        /* 点击时高亮效果 */
        nav .active::after {
            transition: all .5s;
            content: '';
            /* 子元素绝对定位 */
            position: absolute;
            width: 100%;
            height: 3px;
            background-color: #ff8200;
            bottom: 5px;
            left: 0;
        }
        /* active */
        nav .active {
            color: black;
            font-weight: bold;
            font-size: 18px;
        }
    }
}

.carousel {
    width: 100%;
    position: relative;
    margin: 0 auto; /* 水平居中 */
    overflow: hidden; /* 隐藏超出部分 */
}
.swiper {
    width: 100%;
    display: flex;
    transition: transform 0.5s ease;
    padding: 15px;
}
.swiper-image {
    display: none;
    width: 100%;
    border-radius: 10px;
}
.swiper-image:first-child {
    display: block;
}
.swiper-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.swiper-dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.swiper-dot.active {
    background-color: #717171;
}

.item {
    padding: 15px;
    border-bottom: 1px solid #f4f4f4;
    img{
        width: 40%;
        border-radius: 10px;
    }
}
.right{
    margin-left: 10px;
    line-height: 1.5;
}